package com.wangp.employee.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.TemporalType;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 第一行简要描述.
 * </p>
 *
 * @author wangping
 * @since 2024-12-19
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("employees")
public class EmployeeDO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id; // 员工编号

    @Column(name = "employee_name", nullable = false, length = 50)
    private String employeeName; // 员工姓名

    @Column(name = "employee_age")
    private Integer employeeAge; // 员工年龄

    @Column(name = "employee_gender", length = 50)
    private String employeeGender; // 员工性别

    @Column(name = "join_date")
    private Date joinDate; // 员工入职时间

    @Column(name = "salary", precision = 10, scale = 2)
    private BigDecimal salary; // 员工薪资

    @Column(name = "department_id", nullable = false)
    private int departmentId; // 员工所属部门编号

    @Column(name = "create_date")
    private Date createDate; // 创建时间

    @Column(name = "create_by", length = 100)
    private String createBy; // 创建人

    @Column(name = "update_date")
    private Date updateDate; // 修改时间

    @Column(name = "update_by", length = 100)
    private String updateBy; // 修改人

    @Column(name = "is_delete", length = 255)
    private String isDeleted; // 是否有效





}
